'use strict'

export default function(router){
    router.map({
        '/':{				//首页
            name:'Index',
            component: function(resolve){
                require(['./views/Index.vue'],resolve);
            }
        },
        '/Index':{				//首页
            name:'Index',
            component: function(resolve){
                require(['./views/Index.vue'],resolve);
            }
        },
        '/Products':{				//发现
            name:'Products',
            component: function(resolve){
                require(['./views/Products.vue'],resolve);
            },
 			backBtn:false
        },
        '/Favorite':{				//收藏
            name:'Favorite',
            auth: true,
            component: function(resolve){
                require(['./views/Favorite.vue'],resolve);
            },
 			backBtn:false
        },
        '/User':{				//我的
            name:'User',
            auth: true,
            component: function(resolve){
                require(['./views/User.vue'],resolve);
            },
 			backBtn:false            
        },
        '/MyProductView/:SId':{               //我的
            name:'MyProductView',
            auth: true,
            component: function(resolve){
                require(['./views/MyProductView.vue'],resolve);
            },
            backBtn:true            
        },
        '/ResetPassword': {
            component: function(resolve){
                require(['./views/ResetPassword.vue'],resolve);
            },
            backBtn:true
        },
        '/ResetPassword/:step': {
            component: function(resolve){
                require(['./views/ResetPasswordStep.vue'],resolve);
            },
            backBtn:true
        },
        '/ModifyPassword': {
            component: function(resolve){
                require(['./views/ModifyPassword.vue'],resolve);
            },
            backBtn:true
        },
        '/ModifyPassword/:step': {
            component: function(resolve){
                require(['./views/ModifyPasswordStep.vue'],resolve);
            },
            backBtn:true
        },
         '/User/Setting':{              //我的
            name:'Setting',
            auth: true,
            component: function(resolve){
                require(['./views/UserSettingIndex.vue'],resolve);},
            backBtn:true,
            subRoutes: {
                '/': {
                component: function(resolve){
                    require(['./views/UserSetting.vue'],resolve);}
                },
              '/ModifyNIckName': {
                component: function(resolve){
                    require(['./views/ModifyNIckName.vue'],resolve);}
                },
              '/ModifyAutoentication': {
                    auth: true,
                    component: function(resolve){
                    require(['./views/ModifyAutoentication.vue'],resolve);}
                },
                '/ModifyPhone': {
                    auth: true,
                    component: function(resolve){
                    require(['./views/ModifyPhone.vue'],resolve);}
                },
                '/ModifyPhone/:step': {
                    auth: true,
                    component: function(resolve){
                    require(['./views/ModifyPhoneStep.vue'],resolve);}
                }
            }           
        },
        '/User/MyOrder':{               //我的
            name:'MyOrder',
            auth: true,
            component: function(resolve){
                require(['./views/MyOrder.vue'],resolve);
            },
            backBtn:true            
        },
        '/User/MyOrderPayNow':{               //我的
            name:'MyOrderPayNow',
            auth: true,
            component: function(resolve){
                require(['./views/MyOrderPayNow.vue'],resolve);
            },
            backBtn:true            
        },
        '/User/MyOrder/:orderId':{               //我的
            name:'MyOrderView',
            auth: true,
            component: function(resolve){
                require(['./views/MyOrderView.vue'],resolve);
            },
            backBtn:true            
        },
        '/User/MyNotice':{               //我的
            name:'MyNotice',
            auth: true,
            component: function(resolve){
                require(['./views/MyNotice.vue'],resolve);
            },
            backBtn:true            
        },
        '/User/MyBulltin':{               //我的
            name:'MyBulltin',
            auth: true,
            component: function(resolve){
                require(['./views/MyBulltin.vue'],resolve);
            },
            backBtn:true            
        },
        '/User/MyBulltin/:bid':{               //我的
            name:'MyBulltinView',
            auth: true,
            component: function(resolve){
                require(['./views/MyBulltinView.vue'],resolve);
            },
            backBtn:true            
        },
        '/Login':{				//登录
            name:'Login',
            component: function(resolve){
                require(['./views/Login.vue'],resolve);
            },
 			backBtn:true
        },
        '/SignUp':{				//注册
            name:'SignUp',
            component: function(resolve){
                require(['./views/SignUp.vue'],resolve);
            },
 			backBtn:true
        },
        '/Protocal':{
            name:'Protocal',
            component: function(resolve){
                require(['./views/userProtocal.vue'],resolve);
            },
            backBtn:true
        },
        '/SignUpStep2':{             //注册
            name:'SignUpStep2',
            component: function(resolve){
                require(['./views/SignUpStep2.vue'],resolve);
            },
            backBtn:true
        },
        '/ProductDetail/:SId':{				//产品详情
            name:'ProductDetail',
            component: function(resolve){
                require(['./views/productDetail.vue'],resolve);
            },
 			backBtn:true
        },
        '/ProductElement/:SId/:tid/:mid':{				//产品要素
            name:'ProductElement',
            component: function(resolve){
                require(['./views/ProductElement.vue'],resolve);
            },
 			backBtn:true
        },
        '/Team/:sid/:Id/:mid':{				//策略团队
            name:'Team',
            component: function(resolve){
                require(['./views/Team.vue'],resolve);
            },
 			backBtn:true
        },
        '/Manager/:sid/:Id/:mid':{				//投资经理
            name:'Manager',
            component: function(resolve){
                require(['./views/Manager.vue'],resolve);
            },
 			backBtn:true
        },
        '/BuyKnow/:sid':{				//购买须知
            name:'BuyKnow',
            component: function(resolve){
                require(['./views/BuyKnow.vue'],resolve);
            },
 			backBtn:true
        },
        '/ProductTips/:sid':{				//产品说明
            name:'ProductTips',
            component: function(resolve){
                require(['./views/ProductTips.vue'],resolve);
            },
 			backBtn:true
        },
        '/Bulletin/:Id':{				//产品公告
            name:'Bulletin',
            component: function(resolve){
                require(['./views/Bulletin.vue'],resolve);
            },
 			backBtn:true
        },
        '/BulletinView/:Id':{
        	name:'BulletinView',
        	component: function(resolve){
                require(['./views/BulletinView.vue'],resolve);
            },
 			backBtn:true
        },
        '/Appointment/:id':{				//预约咨询
            name:'Appointment',
            component: function(resolve){
                require(['./views/Appointment.vue'],resolve);
            },
 			backBtn:true
        },
        '/HistoryView/:sid':{				//查看历史净值
            name:'HistoryView',
            component: function(resolve){
                require(['./views/HistoryView.vue'],resolve);
            },
 			backBtn:true
        },
        '/Newslist/:tn':{				//查看历史净值
            name:'Newslist',
            component: function(resolve){
                require(['./views/Newslist.vue'],resolve);
            },
 			backBtn:true
        },
        '/Newsview/:id':{				//查看历史净值
            name:'Newsview',
            component: function(resolve){
                require(['./views/Newsview.vue'],resolve);
            },
 			backBtn:true
        },
        /* 404路由 */
        '*': {
        	name:'notFound',
            component: function(resolve){
                require(['./views/404.vue'],resolve);
            },
 			backBtn:true
        }
    })
}